package com.carleasoft.mps.cms.business.train.service.Impl;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.carleasoft.mps.cms.business.train.bean.entity.TrainConsume;
import com.carleasoft.mps.cms.business.train.bean.po.ConsumeListPo;
import com.carleasoft.mps.cms.business.train.bean.po.TrainConsumePageQueryPo;
import com.carleasoft.mps.cms.business.train.bean.vo.TrainConsumeVo;
import com.carleasoft.mps.cms.business.train.dao.TrainConsumeMapper;
import com.carleasoft.mps.cms.business.train.service.TrainConsumeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 训练消耗 服务实现类
 * </p>
 *
 * @author fan
 * @since 2023-05-17
 */
@Service
public class TrainConsumeServiceImpl extends ServiceImpl<TrainConsumeMapper, TrainConsume> implements TrainConsumeService {

    @Override
    public Page<TrainConsumeVo> consumePageQuery(Page page, TrainConsumePageQueryPo trainConsumePageQueryPo) {
        return this.baseMapper.consumePageQuery(page,trainConsumePageQueryPo);
    }

    @Override
    public List<TrainConsume> consumeList(ConsumeListPo consumeListPo) {
        return this.getBaseMapper().consumeList(consumeListPo);
    }
}
